import 'package:json_annotation/json_annotation.dart';

import 'ConsignProductImages.dart';
import 'ShopVo.dart';

part 'ConsignProduct.g.dart';

@JsonSerializable()
class ConsignProduct {
  ConsignProduct();

  String? sellerName;
  String? sellerAvatar;
  bool? like;
  int? productId;
  String? userId;
  String? title;
  String? description;
  String? categoryCode;
  String? brandCode;
  String? acgWorkCode;
  String? condition;
  bool? hasOriginalPackaging;
  double? price;
  String? status;
  int? depositoryId;
  String? createTime;
  String? updateTime;
  String? mainImageUrl;
  int? likeCount;
  int? commentCount;
  String? currentUser;
  String? categoryName;
  String? brandName;
  String? orderStatus;
  String? shopId;
  ShopVo? shop;
  List<ConsignProductImages>? images;
  
  factory ConsignProduct.fromJson(Map<String,dynamic> json) => _$ConsignProductFromJson(json);
  Map<String, dynamic> toJson() => _$ConsignProductToJson(this);
}
